package com.weixing.mall.provider.enums;

import com.weixing.mall.base.enums.IBaseEnum;
import lombok.NoArgsConstructor;

/**
 * @Author: kfc
 * @Description: <br/>
 * Date:Create in 2019/8/6 17:46
 * @Modified By:
 */

@NoArgsConstructor
public enum LoginEnum implements IBaseEnum<String> {
    SYSUSER_APP_LOGIN("/sys/login/app","后台管理员：APP登录"),

    SYSUSER_USERNAME_PASSWORD_CAPTCHA("/sys/login","后台用户：用户名密码 + 图形验证码登录"),

    MEMBER_USERNAME_PASSWORD("/member/login","会员：用户名密码登陆"),
    MEMBER_SMS_CODE("/member/login/mobile","会员：短信验证码登录"),
    MEMBER_OPENID("/member/login/openid","会员：微信网页授权登录"),
    MEMBER_XCX_CODE("/member/login/xcx/code","会员：微信小程序授权登录"),
    MEMBER_XCX_AUTH("/member/login/xcx/auth","会员：微信小程序手机号授权登录"),


    AGENT_PASSWORD_LOGIN("/agent/login","代理商：用户名密码登陆"),
        ;

    private String value;
    private String desp;

    LoginEnum(String value, String desp) {
        this.value = value;
        this.desp = desp;
    }

    @Override
    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    @Override
    public String getDesp() {
        return desp;
    }

    public void setDesp(String desp) {
        this.desp = desp;
    }
}
